function summitForm(frmId, action, method){
    frm = document.getElementById(frmId); 
    if(frm)
    {
        frm.action=action;
        frm.method=method;
        frm.submit();
    }
}